package com.rede.didiok.user.modulelist.rank.service.impl;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rede.didiok.common.utils.PageUtils;
import com.rede.didiok.common.utils.Query;
import com.rede.didiok.user.modulelist.rank.dao.VoteCountDao;
import com.rede.didiok.user.modulelist.rank.entity.VoteCountEntity;
import com.rede.didiok.user.modulelist.rank.service.VoteCountService;


@Service("voteCountService")
public class VoteCountServiceImpl extends ServiceImpl<VoteCountDao, VoteCountEntity> implements VoteCountService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<VoteCountEntity> page = this.page(
                new Query<VoteCountEntity>().getPage(params),
                new QueryWrapper<VoteCountEntity>()
        );

        return new PageUtils(page);
    }

}